chcp 65001
@echo conf
@title  jpaas front system

if not exist logs md logs

if not exist temp md temp

echo "1. starting boot debug env"
echo "2. starting paas debug env"
echo "3. starting boot prod env"
echo "4. starting paas prod env"
set/p a=Please choice:

if "%a%"=="1" goto :BOOT_DEBUG :end
if "%a%"=="2" goto :PAAS_DEBUG :end
if "%a%"=="3" goto :BOOT_PROD :end
if "%a%"=="4" goto :PAAS_PROD :end
echo you choice error, will exit...
ping 127.1>nul
exit

:BOOT_DEBUG
nginx.exe -s stop -c  conf/nginx-boot-windows-dev.conf
:PAAS_DEBUG
nginx.exe -s stop -c  conf/nginx-paas-windows-dev.conf
:BOOT_PROD
nginx.exe -s stop -c  conf/nginx-boot-windows-prod.conf
:PAAS_PROD
nginx.exe -s stop -c  conf/nginx-paas-windows-prod.conf

:end
pause